<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

		 <!-- inherit contract view -->        
      	 <record id="hr_contract_view_form_inherit" model="ir.ui.view">
            <field name="name">hr.contract.view.form.inherit</field>
            <field name="model">hr.contract</field>
            <field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
            <field name="arch" type="xml">
      			
      			<field name="employee_id" position="after">
      				<field name="status"/>
      				<field name="stat"/>
      			</field>
      			<field name="wage" position="after">
      				<field name="incentive"/>
      				<field name="meal"/>
      				<field name="transport"/>
      				<field name="ot_type"/>
      			</field>
      			<field name="working_hours" position="before">
      				<field name="shift_group"/>
      			</field>
      			<field name="notes" position="after">
      				<separator string="Project Contract"/>
      				<field name="contract_project_ids">
      					<form string="Project Contract">
		                	<group>
                   				<field name="name"/>
                   				<field name="project_start_date"/>
                   				<field name="project_end_date"/>
                   				<field name="location"/>
                   			</group>
                   			<group>
                   				<field name="work_hours"/>
                   				<field name="project_allowance"/>
                   				<field name="other_allowance_id"/>
                   				<field name="project_status"/>
                   			</group>
	                	</form>
	                	<tree string="Project Contract">
                 			<field name="name"/>
                			<field name="location"/>
                			<field name="project_start_date"/>
                			<field name="project_end_date"/>
                			<field name="work_hours"/>
                			<field name="project_status"/>
                 		</tree>
      				</field>
      			</field>
      	 	</field>
      	 </record>
      	 
		 <!-- inherit contract type view -->
  		 <record id="hr_contract_type_view_form_inherit" model="ir.ui.view">
            <field name="name">hr.contract.type.view.form.inherit</field>
            <field name="model">hr.contract.type</field>
            <field name="inherit_id" ref="hr_contract.hr_contract_type_view_form"/>
            <field name="arch" type="xml">
            	
				<group position="after">	 
					<group string="Leave Allocation">
						<field name="is_have_allocation"/>
		            </group>
		        </group>
		        <field name="is_have_allocation" position="after">
	            	<group string="BPJS">
						<field name="bpjs_worker"/>
						<field name="bpjs_company"/>
	           		</group>
	            	<group string="Reimburse">
						<field name="medical_reimburse"/>
						<field name="limit_medical_reimburse"/>
	           		</group>
	            	<group string="Professional Tax">
						<field name="professional_tax"/>
						<field name="nominal_professional_tax"/>
	           		</group>
	           		<group string="Annuity">
						<field name="company_annuity"/>
						<field name="worker_annuity"/>
						<field name="nominal_annuity"/>
	           		</group>
	           		<group string="Tax Calculation">
						<field name="tax_calc_type"/>
	           		</group>

		         </field>   
            </field>
        </record>
    </data>
</openerp>
